package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * 通知Dto类
 *
 * @author lyj
 * @since 2015-3-18
 */
public class NoticeDto {

    @Min(value = 1, message = "ID不合法")
    private Long id; //ID

    @NotBlank(message = "标题不能为空")
    @Size(min = 1, max = 100, message = "标题长度不合法")
    private String title; //标题

    @NotBlank(message = "内容不能为空")
    @Size(min = 1, max = 500, message = "内容长度不合法")
    private String content; //通知内容

    @Range(min = 0, max = 3, message = "群组类型不能为空")
    private Integer groupType; //群组类型


    @Min(value = 1, message = "群组ID不合法")
    private Long groupId; //群组ID

    private String time; //发布信息时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
